-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pr_labeler: add warning for porting_guides changes #514
Conversation
d6c5912
to
ae2ec36
Compare
Okay, this should be ready for another review. The list of release managers are no longer hardcoded. Now that we have the Github app token set up, we can retrieve the list of release managers from @ansible/release-management-wg via the Github API 🎉. This no longer applies to core porting guides; warnings are only printed for changes to community porting guides. There is deliberately no distinction between current and EOL changelogs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't really comment on the code but it all LGTM.
This adds a warning message when PRs are created that edit porting_guides by someone outside of the Release Management WG. These files are automatically generated during the ansible release process and should not be modified. Fixes: ansible#503
Instead of hardcoding the list of release managers, we can use the Github API to retrieve the members of the `@ansible/release-management-wg` team.
For example, patchback is not a release manager, but we still want it to backport Porting Guide PRs.
Co-authored-by: Sandra McCann <[email protected]>
1e150ac
to
95ece7e
Compare
Thanks for the review, @samccann! |
I just rebased on top of |
Note to self: I tagged this PR with |
This adds a warning message when PRs are created that edit
porting_guides by someone outside of the Release Management WG. These
files are automatically generated during the ansible release process and
should not be modified.
Fixes: #503